#include<iostream>
using namespace std;
int main(){
	int a,b;
	cin >> a >> b;
	cout << "C:" << 2*(a+b) << endl;
	cout << "S:" << a*b << endl;
	return 0;
}
